package com.gzsxy.esjy.service.file.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gzsxy.esjy.service.file.entity.FileResource;
import com.gzsxy.esjy.service.file.entity.dto.UploadDto;
import org.springframework.web.multipart.MultipartFile;

/**
 * @description: 文件服务
 * @param
 * @return
 */
public interface FileService extends IService<FileResource> {

    /**
     * @description: 文件上传
     * @param file 文件
     * @return
     */
    FileResource upload(MultipartFile file);

    /**
     * @description: 删除成功
     * @param fileIndex 索引
     * @return
     */
    void delete(String fileIndex);

    /**
     * @description: 上传base64
     * @param
     * @return
     */
    FileResource uploadBase64(UploadDto uploadDto) throws Exception;
}
